<%
String str = (String) request.getAttribute("str");
String title = (String) request.getAttribute("title");
String content = (String) request.getAttribute("content");
String blogId = (String) request.getAttribute("blogId");
%>
<p>
	<a href="javascript:void(0)" id='submit-link-content'>Test to Submit Article to your Blog</a>
	( <span id='loader'></span> )<br/>
	Submit to test Article to display on your Blog. if it's ok, please remove this article, unless, your Article is be duplicate.
</p>
<hr />
<p>
	<span class="span">Link : </span><a
		href="<%=str%>"><%=str%></a>
</p>
<hr />
<p>
	<span class="span">Title : </span><%=title%>
</p>
<hr />
<p>
	<span class="span">Content : </span>
</p>
<div class="checkcontent">
	<%=content%>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#submit-link-content").click(function(){
			$("#loader").html("<img src='/images/ajax-loader.gif'/>");
			$.get(
					'/submit-content-to-blog',
					{
						blogId: blogId,
						sitemap:$("#site").val(),
						reglink:$("#reg-link").val(),
						regtitle:$("#reg-title").val(),
						regcontent:$("#reg-content").val(),
						regremove:$("#reg-remove").val(),
						type:$("input[type='radio']:checked").val()
					},
					function(data)
					{
						$("#loader").html(data);
					}
			);
		});
	});
</script>
